package day07;
//重载的演示
public class OverLoadDemo {
    public static void main(String[] args) {
        show();
        show("JK");
        show(22);
        show("JJKK",23);
        show(23,"JJJKKKKKK");
    }
    public static void show(){ }//无参无返
    public static void show(String name){ }//有1参无返
    public static void show(int age){}//有1参无返
    public static void show(String name,int age){ }//有两参无返
    public static void show(int age,String name){}//有两参无返
    //public static int show(){return 1;};//编译错误，重载与返回值类型无关
    //public static void show(String abababababba){}//编译错误，重载与参数名称无关

}
